<?php
/**
 * User Model of the database
 * @author: Ueli Kramer <ueli.kramer@gmail.com>
 */

class User extends Eloquent
{

    public static $table = 'user';

    public function groups()
    {
        return $this->has_many_and_belongs_to('Group', 'user_has_group');
    }

}